<div class="header">
  <back-Btn></back-Btn>
  抵税扣税
</div>
<div class="container finance task-review">
  <div class="list f_sk">
    <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
      date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
    <div class="section">
      <div class="list-item flex">
        <div class="c9 w40">项目编号</div>
        <div class="w60">{{ TaskReview.result.projectNo }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">项目名称</div>
        <div class="w60" relative-module="project_store" module-no="{{ TaskReview.result.projectNo }}">
          {{ TaskReview.result.projectName }}
        </div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.outputInvoiceNo">
        <div class="w40 c9">对应的销项发票</div>
        <div class="w60" relative-module="Xm_OutputInvoice" module-no="{{ TaskReview.result.outputInvoiceNo }}">
          {{ TaskReview.result.outputInvoiceNo }}
        </div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.outputInvoiceAmount">
        <div class="w40 c9">开票金额(不含税)</div>
        <div class="w60">{{ TaskReview.result.outputInvoiceAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次应缴纳税金 </div>
        <div class="w60">{{ TaskReview.result.shouldPayAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次已缴纳税金 </div>
        <div class="w60">{{ TaskReview.result.alreadyPayAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次应补缴税金 </div>
        <div class="w60">{{ TaskReview.result.shouldStillPayAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次需抵扣发票 </div>
        <div class="w60">{{ TaskReview.result.invoiceCreaditAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次实需补缴金额 </div>
        <div class="w60">{{ TaskReview.result.stillPayAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次可退预缴税金 </div>
        <div class="w60">{{ TaskReview.result.shouldRefundAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">本次实退预缴税金 </div>
        <div class="w60">{{ TaskReview.result.actualRefundAmount | NBFmt }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.remark">
        <div class="w40 c9">备注</div>
        <div class="w60">{{ TaskReview.result.remark }}</div>
      </div>
      <!-- 自定义字段 -->
      <div checkuser-define field-map="TaskReview.result.customFields"></div>
      <div class="list table-list"
        ng-show="TaskReview.result.shouldPayDatails&&TaskReview.result.shouldPayDatails.length>0">
        <div class="info-title">本次应缴纳的税额明细 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.shouldPayDatails">
          <div class="list-item">
            <div class="item-label">税种 </div>
            <div class="flow-content">{{ item.taxName }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税率 </div>
            <div class="flow-content">{{ item.taxRate }}%</div>
          </div>
          <div class="list-item">
            <div class="item-label">借款金额</div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list" ng-show="TaskReview.result.payments&&TaskReview.result.payments.length>0">
        <div class="info-title">本次已缴税的缴税记录 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.payments">
          <div class="list-item" ng-show="item.paymentNo">
            <div class="item-label">编号</div>
            <div class="flow-content" relative-module="Xm_TaxesPayment" module-no="{{ item.paymentNo }}">
              {{ item.paymentNo }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">税务机关 </div>
            <div class="flow-content">{{ item.taxAuthority }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税款所属时期 </div>
            <div class="flow-content">{{ item.taxStartDate|dateFmt  }}~{{ item.taxEndDate|dateFmt  }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税额总计 </div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">销售金额 </div>
            <div class="flow-content">{{ item.salesAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list"
        ng-show="TaskReview.result.alreadyPayDatailss&&TaskReview.result.alreadyPayDatailss.length>0">
        <div class="info-title">本次已缴纳的税额明细 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.alreadyPayDatailss">
          <div class="list-item">
            <div class="item-label">税种 </div>
            <div class="flow-content">{{ item.taxName }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税率 </div>
            <div class="flow-content">{{ item.taxRate }}%</div>
          </div>
          <div class="list-item">
            <div class="item-label">借款金额</div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list"
        ng-show="TaskReview.result.stillPayDatails&&TaskReview.result.stillPayDatails.length>0">
        <div class="info-title">本次需补缴的税额明细 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.stillPayDatails">
          <div class="list-item">
            <div class="item-label">税种 </div>
            <div class="flow-content">{{ item.taxName }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税率 </div>
            <div class="flow-content">{{ item.taxRate }}%</div>
          </div>
          <div class="list-item">
            <div class="item-label">借款金额</div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list" ng-show="TaskReview.result.invoices&&TaskReview.result.invoices.length>0">
        <div class="info-title">本次需抵税的进项发票 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.invoices">
          <div class="list-item" ng-show="item.invoiceNo">
            <div class="item-label">编号</div>
            <div class="flow-content" relative-module="Xm_InputInvoice" module-no="{{ item.invoiceNo }}">
              {{ item.invoiceNo }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">开票单位 </div>
            <div class="flow-content">{{ item.makeInvoiceCompany }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税额总计 </div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">已抵扣金额 </div>
            <div class="flow-content">{{ item.hasDecuctAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">本次抵扣金额 </div>
            <div class="flow-content">{{ item.decuctAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list" ng-show="TaskReview.result.refunds&&TaskReview.result.refunds.length>0">
        <div class="info-title">本次应补缴的扣款记录 </div>
        <div class="table-item" ng-repeat="item in TaskReview.result.refunds">
          <div class="list-item" ng-show="item.invoiceNo">
            <div class="item-label">编号</div>
            <div class="flow-content">
              {{ item.costNo }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">款项类别 </div>
            <div class="flow-content" ng-switch="item.deductType">
              <div ng-switch-when="3">
                保证金
              </div>
              <div ng-switch-when="4">
                押金
              </div>
              <div ng-switch-when="5">
                缴纳
              </div>
              <div ng-switch-when="6">
                成本
              </div>
              <div ng-switch-when="7">
                收入
              </div>
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">款项小类 </div>
            <div class="flow-content">{{ item.deductName }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">扣款金额 </div>
            <div class="flow-content">{{ item.deductAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">已退金额 </div>
            <div class="flow-content">{{ item.hasReturnAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">可用余额 </div>
            <div class="flow-content">{{ item.balance|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">本次补缴税金 </div>
            <div class="flow-content">{{ item.useAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">本次退回金额 </div>
            <div class="flow-content">{{ item.returnAmount|NBFmt }}</div>
          </div>
        </div>
      </div>

      <!-- 附件 -->
      <div class="file-upload" file-list file-data="TaskReview.result.attachment" checked="true"></div>
    </div>
    <!-- 审查日志 -->
    <div log-list taskid="process_id"></div>
  </div>
</div>